package tempEngine.playerInput;

import java.awt.Point;
/**
 * represent a physicalPlayer and allow to get the new required 
 * position of their snowblobby.
 * @author HINB's project
 *
 */
public abstract class RealPlayer extends CoordNotifier{
	/* *********************************************************
	 * Attributes
	 * ********************************************************* */
	private Point _coord;
	
	/* *********************************************************
	 * Constructor(s)
	 * ********************************************************* */
	/**
	 * default constructor 
	 * NOTE : player's coord will be set to null.
	 */
	public RealPlayer(){
		_coord = null;
	}
	
	/* *********************************************************
	 * Instance Methods
	 * ********************************************************* */
	/**
	 * assign the given position to the player's coord and notify 
	 * all the follower as describe in the CoordNotifier's method.
	 * @see CoordNotifier
	 * 
	 * @param p the new position to assign 
	 */
	public void setNewCoord(Point p){
		_coord = p;
		this.notify(_coord);
	}
}
